﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 留言评论
    /// </summary>
    public class Comment
    {
        public Comment() {
            this.CreateDate = DateTime.Now;
            this.UpdateDate = DateTime.Now;
            this.TheAuthorDate = DateTime.Now;
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 回复用户Id
        /// </summary>
        public Guid UserId { get; set; }
        public User User { get; set; }
        /// <summary>
        /// 回复章节Id
        /// </summary>
        public Guid SectionId { get; set; }
        public Section Section { get; set; }
        /// <summary>
        /// 留言内容
        /// </summary>
        [DataType(DataType.Text)]
        public string Content { get; set; }
        /// <summary>
        /// 作者回复的内容
        /// </summary>
        [DataType(DataType.Text)]
        public string TheAuthorContent { get; set; }
        /// <summary>
        /// 作者回复时间
        /// </summary>
        public DateTime TheAuthorDate { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public int Like { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime UpdateDate { get; set; }
    }
}
